<template>
	<view>
		<view class="head">
			<view class="icon-box">
				<image class="icon" src="../../../static/img/taorst.png" mode=""></image>
			</view>
			<view class="say">
				允许微信授权后，体验更多功能哦
			</view>
		</view>
		<view class="center">
			<view class="one">
				微信登录授权
			</view>
			<view class="two">
				<image class="icon" src="../../../static/img/taorst.png" mode=""></image>
				<view class="">
					道友申请获取以下权限
				</view>
			</view>
			<view class="three">
				申请获取您微信绑定的手机号
			</view>
			<view class="four">
				<button>取消</button>
				<button open-type="getPhoneNumber" @getphonenumber="getPhoneNumber">去授权</button>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			getPhoneNumber: function(e) {
				console.log(e);
				if (e.detail.errMsg == 'getPhoneNumber:fail user deny') {
 
				} else {
 
				}
				//console.log(JSON.stringify(e.encryptedData));
				//console.log(JSON.stringify(e.iv));
			}
		},
		onLoad() {
			
		}
	}
</script>

<style>
	@import url("authPhone.css");
</style>
